#include <basic/errcode.h>
#include <basic/dbc.h>
#include <custom/db.h>

#include "dbpasswd.c"

int mysqlc_connect_secure_ex(char *dbuser, char *dbpasswd_enc,
        char *database, char *host, MYSQLC *pdb)
{/*{{{*/
    char dbpasswd[PASSWD_MAX_SIZE+1];

    if(dbpasswd_decrypt(dbpasswd_enc, dbpasswd))
        return(MY_ERROR);
    return(mysqlc_connect_ex(dbuser, dbpasswd, database, host, pdb));
}/*}}}*/
